#include "StdAfx.h"
#include "GameStateAccessor.h"
#include "GameState.h"
#include <boost/foreach.hpp>
#include <boost/make_shared.hpp>

GameStateAccessor::GameStateAccessor(unsigned int countOfPlanets, unsigned int countOfPlayers)
                                    : m_countOfPlayers(countOfPlayers)
                                    , m_countOfPlanets(countOfPlanets)
{
   init();
}


GameStateAccessor::~GameStateAccessor()
{
}

void GameStateAccessor::init()
{
   m_gameStatePtr = boost::make_shared<GameState>(m_countOfPlanets, m_countOfPlayers);
}